<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			/*
			  表达式1;
			  while(条件表达式2){
			     语句;
			     表达式3
			  }
			*/
			var a = 0;
			while (a < 3) {
				console.log(a);
				a++;
			}

			//输出1-100之间的偶数的个数

			var c = 1;
			var count = 0;
			while (c <= 100) {
				if (c % 2 == 0) {
					count++;
				}
				c++;
			}
			console.log("1-100之间的偶数的个数:" + count);
		</script>
	</head>
	<body>
	</body>
</html>
